package com.nxmu.hire.model.EnumMap;

import com.nxmu.hire.model.enums.CollegeEnum;
import com.nxmu.hire.model.enums.EducationEnum;
import com.nxmu.hire.model.enums.RoleEnum;
import com.nxmu.hire.model.enums.TitleEnum;

import java.util.HashMap;
import java.util.Map;

/**
 * 为前端提供枚举的键值信息
 */
public class EnumMap {

    /**
     * 学院
     */
    public static Map<CollegeEnum,String> collegeEnumMap;

    /**
     * 学历
     */
    public static Map<EducationEnum,String> educationEnumMap;

    /**
     * 角色
     */
    public static Map<RoleEnum,String> roleEnumMap;

    /**
     * 职称
     */
    public static Map<TitleEnum,String> titleEnumMap;

    static {
        collegeEnumMap = new HashMap<>();
        collegeEnumMap.put(CollegeEnum.CMC,"临床医学院");
        collegeEnumMap.put(CollegeEnum.BMC,"基础医学院");
        collegeEnumMap.put(CollegeEnum.SMC,"口腔医学院");
        collegeEnumMap.put(CollegeEnum.PHMC,"公共卫生与管理学院");
        collegeEnumMap.put(CollegeEnum.TCMC,"中医学院 （回医学院）");
        collegeEnumMap.put(CollegeEnum.NC,"护理学院（高等卫生职业技术学院）");
        collegeEnumMap.put(CollegeEnum.PMC,"药学院");
        collegeEnumMap.put(CollegeEnum.SC,"理学院");
        collegeEnumMap.put(CollegeEnum.CEC,"继续教育学院");
        collegeEnumMap.put(CollegeEnum.IEC,"国际教育学院");
//        collegeEnumMap.put(CollegeEnum.MC,"马克思主义学院 （人文社会科学部）");
        collegeEnumMap.put(CollegeEnum.SPC,"体育部");
        collegeEnumMap.put(CollegeEnum.FLC,"外国语教学部");

        educationEnumMap = new HashMap<>();
        educationEnumMap.put(EducationEnum.BACHELOR,"学士");
        educationEnumMap.put(EducationEnum.MASTER,"硕士");
        educationEnumMap.put(EducationEnum.DOCTOR,"博士");

        roleEnumMap = new HashMap<>();
        roleEnumMap.put(RoleEnum.TEACHER,"教师");
        roleEnumMap.put(RoleEnum.RESEARCH,"教研室");
        roleEnumMap.put(RoleEnum.OFFICE,"教学办");
        roleEnumMap.put(RoleEnum.HR,"人事处");

        titleEnumMap = new HashMap<>();
        titleEnumMap.put(TitleEnum.ASSISTANT,"助教");
        titleEnumMap.put(TitleEnum.LECTURER,"讲师");
        titleEnumMap.put(TitleEnum.PROFESSOR,"副教授");
        titleEnumMap.put(TitleEnum.AP,"教授");

    }

}
